package com.huadi.ssm.Service;

import com.huadi.ssm.dao.UprecordMapper;
import com.huadi.ssm.po.Uprecord;

import java.util.List;

public class UprecordImpl implements UprecordService{

    private UprecordMapper uprecordMapper;

    public void setUprecordMapper(UprecordMapper uprecordMapper) {
        this.uprecordMapper = uprecordMapper;
    }

    @Override
    public int addUprecord(Uprecord uprecord) {
        return uprecordMapper.addUprecord(uprecord);
    }

    @Override
    public int deleteUprecordById(int evidenceUpId) {
        return uprecordMapper.deleteUprecordById(evidenceUpId);
    }

    @Override
    public int checkUprecord(int evidenceUpId,String judgerId,String judgerName,String judge, String judgeReason) {
        return uprecordMapper.checkUprecord(evidenceUpId,judgerId,judgerName,judge,judgeReason);
    }

    @Override
    public Uprecord findUprecordById(int evidenceUpId) {
        return uprecordMapper.findUprecordById(evidenceUpId);
    }

    @Override
    public List<Uprecord> findAllUprecord() {
        return uprecordMapper.findAllUprecord();
    }
    public List<Uprecord> findAllUprecordForFireman( String submitterId){return uprecordMapper.findAllUprecordForFireman(submitterId);}
}
